﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WoWAPI
{
	public class Perk
	{
		private const string PERKS_URL = "http://{0}.battle.net/api/wow/data/guild/perks";

		public int GuildLevel { get; set; }
		public Spell Spell { get; set; }

		public Perk() { }

		public static Perk[] GetPerks(string Region)
		{
			return API.DeserializeJSON<PerkCollection>(API.MakeWebRequest(String.Format(PERKS_URL, Region))).Perks;
		}

		private class PerkCollection
		{
			public Perk[] Perks { get; set; }

			public PerkCollection() { }
		}
	}
}
